package com.lyc.demo.controller;

import com.lyc.demo.service.HelloWorldService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class HelloController {

    @Autowired
    HelloWorldService helloWorldService;

    @RequestMapping("/HelloWorld")
    public String helloWorld(String name) {
        String result = helloWorldService.home(name);
        return "接收到调用结果：" + result;
    }
}
